from langchain.document_loaders import PyPDFLoader

from langchain.indexes.vectorstore import VectorstoreIndexCreator

from langchain.embeddings.base import OpenAIEmbeddings
from langchain.vectorstores import Chroma

index = VectorstoreIndexCreator().from_loaders([])

ans = index.query_with_sources("", chain_type="map_reduce")

embedding = OpenAIEmbeddings()

# embedding.

vectordb = Chroma(
    persistent_directory="",
    embedding_function=embedding
)